package my.test.mediatorpattern;

/**
 * @author:许玉康
 * @Date: 2019/7/14 13:59
 */
public class Client {

    public static void main(String[] args) {
        System.out.println("-----采购人员采购电脑-----");
        Purchase purchase = new Purchase();
        purchase.buyIBMcomputer(100);
        System.out.println("-----销售人员销售电脑-----");
        Sale sale = new Sale();
        sale.sellIBMComputer(1);
        System.out.println("-----库房管理人员清库处理-----");
        Stock stock = new Stock();
        stock.clearStock();

    }
}
